<?php
class M_remarks extends CI_Model
{
	function get_sites()
	{
		$query = $this->db->get('remarks');
		return $query;
	}
	
	public function insert_remark($remark, $enrollment_id, $grading_period)
	{
		$sql = "INSERT INTO adviser_remarks (remarks, enrollment_id, grading_period) 
				VALUES (?, ?, ?)";
		$query = $this->db->query($sql, array($remark,  $enrollment_id, $grading_period));
		return $this->db->affected_rows() > 0 ? TRUE : FALSE;
	}
}



?>